package com.sskj.spk.intercepter;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class OkGoIntercepter implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();
        request = request.newBuilder()
                .addHeader("myHeader", "ok")
                .addHeader("myHeader", "ok2")
                .build();
        Response response = chain.proceed(request);
        return response;
    }
}
